package com.bz.common;

public enum Codeenum {

    SUCCESS(1, "操作成功"),
    ERROR(9, "system error"),

    REMOTE_DATA(9998, "mok数据"),
    PARAM_ERROR(1001, "必填参数为空!"),
    NOT_LOGIN(1003, "无权限访问"),
    ALL_ERROR(9999, "错误"),
    REMOTE_ERROR(1002, "mes远程调用异常"),;

    private final int    code;
    private final String msg;

    // （2）编写枚举类构造方法
    Codeenum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    // （4）编写方法获取枚举类中对应的值
    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
